#! /usr/bin/env python
#coding:utf-8
"""
check PID,if no exits,then start it!
"""
import os

nginx_pid="/run/nginx.pid"
if not os.path.exists(nginx_pid):
    os.system('/etc/init.d/nginx start')
else:
    print "nginx services is running!!!"

